package com.usabb.api.dto;


import com.usabb.domain.GuestCaseDO;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class GuestCaseDTO {

    private String nameIntro;
    private String content;
    private String avatar;

    public static GuestCaseDTO of(GuestCaseDO guestCaseDO) {
        GuestCaseDTO dto = new GuestCaseDTO();
        dto.setNameIntro(guestCaseDO.getNameIntro());
        dto.setContent(guestCaseDO.getContent());
        dto.setAvatar(guestCaseDO.getAvatar());

        return dto;
    }

}